import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(
        import.meta.env.BASE_URL),
    routes: [{
        path: '/',
        component: () =>
            import ('@/components/login.vue'),
    }, {
        path: '/login',
        component: () =>
            import ('@/components/login.vue'),
    }, {
        path: '/homeview',
        component: () =>
            import ('@/views/HomeView.vue'),
    }, {
        path: '/personalcenter',
        component: () =>
            import ('@/views/personalCenter.vue'),
    }, {
        path: '/imagerecognition',
        component: () =>
            import ('@/views/imageRecognition.vue'),
    }, {
        path: '/searchmessage',
        component: () =>
            import ('@/views/searchMessage.vue'),
    }, {
        path: '/confirmmessage',
        component: () =>
            import ('@/views/confirmMessage.vue'),
    }, {
        path: '/statisticalmessage',
        component: () =>
            import ('@/views/statisticalMessage.vue'),
    }]
})

export default router